import 'package:coinbaby/common/const/cosnt.dart';
import 'package:coinbaby/common/textstyle/textstyle.dart';
import 'package:flutter/material.dart';

class BottomButton extends StatelessWidget {

  final String title;
  final Function() onTap;

  const BottomButton({Key key, this.title, this.onTap}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    
    final size = MediaQuery.of(context).size;

    return InkWell(
      onTap: onTap,
      child: SafeArea(
        child: Container(
          width: size.width,
          height: 43,
          margin: const EdgeInsets.all(15),
          decoration: BoxDecoration(
            borderRadius: BorderRadius.circular(30),
            color: AppColor.blue
          ),
          alignment: Alignment.center,
          child: Text(title, style: AppFont.textStyle(16, Colors.white),),
        ),
      ),
    );
  }
}